﻿define(["httpRequester"], function (httpRequester) {
    function getAllStudents(localhostUrl) {
        return httpRequester.getJSON(localhostUrl + "api/students");
    }

    function getMarksByStudentId(localhostUrl, id) {
        return httpRequester.getJSON(localhostUrl + "api/students/" + id + "/marks");
    }

    return {
        allStudents: getAllStudents,
        marksFromStudentsId: getMarksByStudentId
    }
});